/* 页面样式文件 - 专业版选股系统页面特定样式 */

/* ============================================================================ 
   数据导入页面样式
   ============================================================================ */

/* 导入页面特定布局优化 */
.import-page .main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
}

.import-page .tab-content {
    display: grid;
    grid-template-columns: minmax(380px, 420px) 1fr;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    min-height: 700px;
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .import-page .tab-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .import-page .control-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .import-page .main-content {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .import-page .tab-content {
        gap: 15px;
        min-height: auto;
    }
    
    .import-page .control-panel {
        padding: 20px;
    }
    
    .import-page .panel-title {
        padding: 15px 20px;
        margin: -20px -20px 20px -20px;
        font-size: 1.1em;
    }
}

/* 导入控制面板优化 */
.import-page .control-panel {
    position: sticky;
    top: 25px;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    height: fit-content;
    align-self: start;
    grid-column: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.import-page .control-panel:hover {
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* 导入控制面板标题优化 */
.import-page .panel-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    margin: -25px -25px 25px -25px;
    border-radius: 16px 16px 0 0;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.import-page .panel-title i {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 导入表单组优化 */
.import-page .form-group {
    margin-bottom: 28px;
    position: relative;
}

.import-page .form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-page .form-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    display: inline-block;
}

/* 导入表单控件优化 */
.import-page .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.import-page .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-1px);
}

.import-page .form-control:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* 导入表单帮助文本优化 */
.import-page .form-help {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 8px;
    font-size: 0.85em;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.import-page .form-help:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.25);
}

.import-page .form-help i {
    color: #667eea;
    font-size: 0.9em;
}

/* 目录信息显示优化 */
.import-page .directory-info {
    margin: 16px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 10px;
    font-size: 0.9em;
    color: #155724;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-page .directory-info::before {
    content: '📁';
    font-size: 1.1em;
}

/* 导入按钮优化 */
.import-page .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    margin-top: 8px;
}

.import-page .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.import-page .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.import-page .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.import-page .btn-primary i {
    font-size: 1.1em;
}

/* 导入状态样式优化 */
.import-count {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.import-count.status-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #b8dacc;
}

.import-count.status-success::before {
    content: '✓';
    font-weight: bold;
}

.import-count.status-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.import-count.status-warning::before {
    content: '⚠';
    font-weight: bold;
}

.import-count.status-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.import-count.status-error::before {
    content: '✗';
    font-weight: bold;
}

.import-count.status-pending {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #6c757d;
    border: 1px solid #ced4da;
}

.import-count.status-pending::before {
    content: '⋯';
    font-weight: bold;
}

/* 导入按钮状态样式优化 */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 成功提示消息样式优化 */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #b8dacc;
    color: #155724;
    padding: 16px 20px;
    border-radius: 12px;
    animation: slideInDown 0.4s ease-out;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.alert-success i {
    margin-right: 10px;
    font-size: 1.1em;
    color: #28a745;
}

.btn-outline-success {
    color: #28a745;
    border: 2px solid #28a745;
    background: transparent;
    padding: 6px 10px;
    font-size: 0.85em;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-outline-success:hover {
    color: white;
    background: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导入结果区域优化 */
.import-page .results-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    overflow-y: auto;
    grid-column: 2;
}

/* 导入表格容器优化 */
.import-page .table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.import-page .table-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* 导入表格样式优化 */
.import-page .performance-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.import-page .performance-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.import-page .performance-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.import-page .performance-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.import-page .performance-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.import-page .performance-table tbody tr:hover td {
    border-color: rgba(102, 126, 234, 0.2);
}

.import-page .performance-table tbody tr:last-child td {
    border-bottom: none;
}

/* 导入操作按钮优化 */
.import-page .btn-sm {
    padding: 8px 16px;
    font-size: 0.85em;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.import-page .btn-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.import-page .btn-sm:hover::before {
    left: 100%;
}

.import-page .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.import-page .btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.import-page .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.import-page .btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* 加载状态优化 */
.import-page .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 500;
}

.import-page .loading i {
    font-size: 1.3em;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 空状态优化 */
.import-page .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.import-page .empty-state i {
    font-size: 3em;
    color: #adb5bd;
    margin-bottom: 20px;
    display: block;
}

.import-page .empty-state div:nth-child(2) {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.import-page .empty-state div:nth-child(3) {
    font-size: 0.9em;
    color: #6c757d;
}

/* 文件类型标签优化 */
.import-page .file-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* 文件大小显示优化 */
.import-page .file-size {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* 交易日期显示优化 */
.import-page .trade-date {
    font-weight: 600;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* 进度指示器优化 */
.import-page .progress-indicator {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.import-page .progress-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    animation: progressAnimation 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes progressAnimation {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* 工具提示优化 */
.import-page .tooltip {
    position: relative;
    cursor: help;
}

.import-page .tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.import-page .tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* 文件列表动画 */
.import-page .file-list-enter-active,
.import-page .file-list-leave-active {
    transition: all 0.5s ease;
}

.import-page .file-list-enter-from {
    opacity: 0;
    transform: translateY(20px);
}

.import-page .file-list-leave-to {
    opacity: 0;
    transform: translateY(-20px);
}

/* 导入状态样式 */
.import-page .performance-table .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.import-page .performance-table .status-badge.status-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.import-page .performance-table .status-badge.status-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.import-page .performance-table .status-badge.status-error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.import-page .performance-table .import-message {
    font-size: 12px;
    color: #666;
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* 导入条数样式 - 与收益分析表格保持一致 */
.import-page .performance-table td:nth-child(6) {
    text-align: center;
}

.import-page .performance-table .import-count {
    font-weight: 600;
    color: #495057;
}

.import-page .performance-table .import-count.status-success {
    color: #28a745;
}

.import-page .performance-table .import-count.status-warning {
    color: #ffc107;
}

.import-page .performance-table .import-count.status-error {
    color: #dc3545;
}

/* 文件列表日期分组样式 */
.date-group {
    margin-bottom: 30px;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

.date-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.file-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* 文件表格样式 */
.file-table {
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.file-table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1.5fr 1fr;
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
    border-bottom: 2px solid #e0e0e0;
}

.file-table-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1.5fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.file-table-row:hover {
    background-color: #f8f9ff;
}

.file-table-row:last-child {
    border-bottom: none;
}

.file-col-name {
    display: flex;
    align-items: center;
}

.file-name {
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-col-type {
    display: flex;
    align-items: center;
}

.file-col-size {
    display: flex;
    align-items: center;
    color: #666;
}

.file-col-time {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9em;
}

.file-col-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 目录信息样式 */
.directory-info {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    font-size: 0.9em;
    color: #667eea;
}

/* 日期单元格样式 */
.date-cell {
    background: rgba(102, 126, 234, 0.05);
    font-weight: 600;
    color: #667eea;
    text-align: center;
    vertical-align: middle;
}

/* ============================================================================ 
   数据分析页面样式
   ============================================================================ */

.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 统计概览 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* 图表区域 */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 策略分布 */
.strategy-distribution,
.change-distribution {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.strategy-distribution h3,
.change-distribution h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.1em;
}

.strategy-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.strategy-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.strategy-name {
    width: 40%;
    font-weight: 500;
    font-size: 0.9em;
}

.strategy-bar-container {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.strategy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.strategy-count {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* 涨跌幅分布 */
.change-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.change-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    font-size: 0.95em;
}

.change-range:nth-child(1) {
    border-left: 4px solid #28a745;
}

.change-range:nth-child(2) {
    border-left: 4px solid #4cd964;
}

.change-range:nth-child(3) {
    border-left: 4px solid #ff9500;
}

.change-range:nth-child(4) {
    border-left: 4px solid #ff3b30;
}

.change-range span:first-child {
    font-weight: 500;
}

.change-range span:last-child {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1em;
}

/* ============================================================================ 
   结果展示页面样式
   ============================================================================ */

/* 结果展示页面的单面板布局 */
.tab-content.single-panel-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    min-height: 500px;
}

.single-panel-layout .results-panel {
    width: 100%;
    grid-column: 1 / -1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 确保表格容器正确显示 */
.single-panel-layout .table-container {
    width: 100%;
    overflow-x: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 确保结果内容正确显示 */
.single-panel-layout .results-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* 确保数据分析内容正确显示 */
.single-panel-layout .analytics-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* 结果内容样式优化 */
.results-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    padding: 6px;
}

/* 添加与数据分析内容区相同的统计概览样式到结果展示页面 */
.results-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.results-stats-overview .stat-card {
    background: rgba(102, 126, 234, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.results-stats-overview .stat-card:hover {
    background: rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.results-stats-overview .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
    line-height: 1;
}

.results-stats-overview .stat-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 优化过滤器样式 */
.filters {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 优化表单控件样式 */
.filters .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1em;
    transition: all 0.3s ease;
    flex: 1;
}

.filters .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 优化执行状态提示样式 */
.execution-status {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    font-weight: 500;
}

.execution-status.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.execution-status.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.execution-status.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 表格内容颜色状态 */
.positive {
    color: #e53935;
    font-weight: 600;
}

.negative {
    color: #2e7d32;
    font-weight: 600;
}

/* 结果表格优化 */
.advanced-page .results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.advanced-page .results-table thead th {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
}

.advanced-page .results-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.advanced-page .results-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.06);
}

/* 让结果区域占满可视高度，和收益分析风格一致 */
.advanced-page .single-panel-layout .results-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 260px);
}

.advanced-page .single-panel-layout .results-panel .results-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.advanced-page .single-panel-layout .advanced-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.advanced-page .single-panel-layout .advanced-table-container table {
    width: 100%;
    height: 100%;
}

.advanced-page .single-panel-layout .advanced-table-container tbody {
    display: table-row-group;
    overflow: auto;
    max-height: none;
}

.advanced-page .single-panel-layout .advanced-table-container thead {
    display: table-header-group;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
}

.advanced-page .single-panel-layout .advanced-table-container tbody tr {
    display: table-row;
}

.neutral {
    color: #667eea;
}

/* 统计值颜色状态 */
.stat-value.positive {
    color: #e53935;
}

.stat-value.negative {
    color: #2e7d32;
}

.stat-value.neutral {
    color: #667eea;
}

/* ============================================================================ 
   收益分析页面样式
   ============================================================================ */

/* 收益分析页面特定布局优化 */
.performance-tab-content {
    display: grid;
    grid-template-columns: minmax(350px, 400px) 1fr;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    min-height: calc(100vh - 300px);
    max-height: calc(100vh - 300px);
    overflow: hidden;
}

/* 收益分析控制面板 - 固定高度 */
.performance-tab-content .performance-control-panel {
    grid-column: 1;
    grid-row: 1;
    height: calc(100vh - 300px);
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 25px;
    align-self: start;
}

/* 收益分析结果面板 - 占满剩余空间 */
.performance-tab-content .performance-results-panel {
    grid-column: 2;
    grid-row: 1;
    height: calc(100vh - 300px);
    max-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 收益分析表格容器 - 占满结果面板 */
.performance-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.performance-table-container table {
    width: 100%;
    min-width: 1200px; /* 设置最小宽度确保所有列都能显示 */
    height: 100%;
    border-collapse: collapse;
    white-space: nowrap; /* 防止文字换行 */
}

/* 设置各列的宽度 */
.performance-table th:nth-child(1), .performance-table td:nth-child(1) { width: 100px; } /* 执行日期 */
.performance-table th:nth-child(2), .performance-table td:nth-child(2) { width: 80px; }  /* 证券代码 */
.performance-table th:nth-child(3), .performance-table td:nth-child(3) { width: 100px; } /* 证券名称 */
.performance-table th:nth-child(4), .performance-table td:nth-child(4) { width: 100px; } /* 策略类型 */
.performance-table th:nth-child(5), .performance-table td:nth-child(5) { width: 80px; }  /* 选股价格 */
.performance-table th:nth-child(6), .performance-table td:nth-child(6) { width: 80px; }  /* 最新价格 */
.performance-table th:nth-child(7), .performance-table td:nth-child(7) { width: 80px; }  /* 收益率 */
.performance-table th:nth-child(8), .performance-table td:nth-child(8) { width: 80px; }  /* 振幅 */
.performance-table th:nth-child(9), .performance-table td:nth-child(9) { width: 80px; }  /* 夏普比率 */
.performance-table th:nth-child(10), .performance-table td:nth-child(10) { width: 80px; } /* 最大回撤 */
.performance-table th:nth-child(11), .performance-table td:nth-child(11) { width: 80px; } /* 波动率 */
.performance-table th:nth-child(12), .performance-table td:nth-child(12) { width: 80px; } /* 日胜率 */
.performance-table th:nth-child(13), .performance-table td:nth-child(13) { width: 80px; } /* 分析天数 */
.performance-table th:nth-child(14), .performance-table td:nth-child(14) { width: 100px; } /* 数据状态 */

.performance-table-container thead {
    display: table-header-group;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
}

.performance-table-container tbody {
    display: table-row-group;
    overflow: auto;
    flex: 1;
}

/* 添加水平滚动容器 */
.performance-table-container {
    overflow-x: auto;
    overflow-y: hidden;
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .performance-tab-content {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        max-height: none;
    }
    
    .performance-tab-content .performance-control-panel {
        position: static;
        max-height: none;
        height: auto;
    }
    
    .performance-tab-content .performance-results-panel {
        height: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .performance-tab-content {
        gap: 15px;
    }
    
    .performance-tab-content .performance-control-panel {
        padding: 20px;
    }
    
    .performance-tab-content .panel-title {
        padding: 15px 20px;
        margin: -20px -20px 20px -20px;
        font-size: 1.1em;
    }
}

/* 收益分析控制面板样式优化 */
.performance-tab-content .performance-control-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.performance-tab-content .performance-control-panel:hover {
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* 收益分析控制面板标题优化 */
.performance-tab-content .performance-control-panel .panel-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    margin: -25px -25px 25px -25px;
    border-radius: 16px 16px 0 0;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 5;
}

.performance-tab-content .performance-control-panel .panel-title i {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 收益分析表单组优化 */
.performance-tab-content .performance-control-panel .form-group {
    margin-bottom: 20px;
}

.performance-tab-content .performance-control-panel .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.performance-tab-content .performance-control-panel .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: white;
    color: #495057;
}

.performance-tab-content .performance-control-panel .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.performance-tab-content .performance-control-panel .form-help {
    margin-top: 6px;
    font-size: 0.85em;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.performance-tab-content .performance-control-panel .form-help i {
    color: #667eea;
}

/* 收益分析按钮优化 */
.performance-tab-content .performance-control-panel .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.performance-tab-content .performance-control-panel .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.performance-tab-content .performance-control-panel .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.performance-tab-content .performance-control-panel .btn-primary:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* 收益分析加载状态优化 */
.performance-tab-content .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 500;
}

.performance-tab-content .loading i {
    font-size: 1.2em;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* K线页面样式 */
.kline-page-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.kline-control-panel {
    position: sticky;
    top: 20px;
}

.chart-panel {
    min-height: 600px;
}

.chart-content {
    padding: 0;
}

.chart-container {
    width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 20px;
}

.volume-chart-container {
    width: 100%;
    height: 200px;
    position: relative;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.checkmark {
    margin-left: 4px;
}

.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #6b7280;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.no-data p {
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================================================ 
   新闻页面样式
   ============================================================================ */

/* 新闻页面特定布局优化 */
.news-tab-content {
    display: grid;
    grid-template-columns: minmax(350px, 400px) 1fr;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    min-height: calc(100vh - 300px);
    max-height: calc(100vh - 300px);
    overflow: hidden;
}

/* 新闻控制面板 - 固定高度 */
.news-tab-content .news-control-panel {
    grid-column: 1;
    grid-row: 1;
    height: calc(100vh - 300px);
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 25px;
    align-self: start;
}

/* 新闻结果面板 - 占满剩余空间 */
.news-tab-content .news-results-panel {
    grid-column: 2;
    grid-row: 1;
    height: calc(100vh - 300px);
    max-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 新闻搜索面板样式 */
.news-tab-content .search-panel {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-items: center;
    margin-bottom: 16px;
}

.news-tab-content .search-panel .form-control {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.news-tab-content .search-panel .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.news-tab-content .search-panel .btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 新闻过滤器样式 */
.news-tab-content .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

/* Tab分类样式 */
.category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.tab-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.news-tab-content .filter-group {
    min-width: 120px;
     flex: 1;
}

/* 新闻加载状态优化 */
.news-tab-content .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 500;
}

.news-tab-content .loading i {
    font-size: 1.2em;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 新闻项目样式 */
.news-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title:hover {
    color: #667eea;
}

.news-content {
    margin-bottom: 15px;
    color: #495057;
    line-height: 1.6;
}

.news-summary {
    font-size: 0.95em;
    color: #6c757d;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #6c757d;
}
.news-tab-content .filter-group .form-label {
    margin-bottom: 6px;  /* 减小标签底部间距 */
    font-size: 0.85em;  /* 稍小字体 */
    font-weight: 600;
    color: #495057;
}
.news-tab-content .filter-group .form-select {
    padding: 8px 12px;  /* 减小内边距 */
    border-radius: 6px;  /* 减小圆角 */
    font-size: 0.9em;  /* 稍小字体 */
}
.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a67d8;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3em;
    margin-bottom: 20px;
    color: #e9ecef;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* 新闻详情模态框样式 */
.news-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.news-detail-content {
    position: relative;
    background: white;
    border-radius: 16px;
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #495057;
}

.news-detail-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.news-detail-content h4 {
    margin: 25px 0 15px 0;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-content .news-content {
    line-height: 1.8;
    color: #495057;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.alert-info strong {
    color: #17a2b8;
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-3 {
    margin-bottom: 16px;
}

.btn-outline-primary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-info {
    font-size: 0.9em;
    color: #6c757d;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .kline-page-content {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }
    
    .news-tab-content {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        max-height: none;
    }
    
    .news-tab-content .news-control-panel {
        position: static;
        max-height: none;
        height: auto;
    }
    
    .news-tab-content .news-results-panel {
        height: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .kline-page-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .kline-control-panel {
        position: static;
    }
    
    .chart-container {
        height: 400px;
    }
    
    .volume-chart-container {
        height: 150px;
    }
    
    .news-tab-content {
        gap: 15px;
    }
    
    .news-tab-content .news-control-panel {
        padding: 20px;
    }
    
    .news-tab-content .panel-title {
        padding: 15px 20px;
        margin: -20px -20px 20px -20px;
        font-size: 1.1em;
    }
    
    .news-detail-content {
        margin: 20px auto;
        width: 95%;
        padding: 20px;
    }
    
    .news-meta {
        gap: 10px;
    }
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .news-tab-content .search-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .news-tab-content .search-panel .form-control {
        min-width: auto;
    }
    
    .news-tab-content .search-panel .btn {
        justify-content: center;
    }
    
    .news-tab-content .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .news-tab-content .filter-group {
        min-width: auto;
    }
    
    .category-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-tab-content .search-panel,
    .news-tab-content .filters {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .tab-btn {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}

/* 基本面信息页面 - 市场数据卡片 */
.market-data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    padding: 0;
}

.market-data-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.market-data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.market-data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.market-data-card:hover::before {
    transform: scaleX(1);
}

.market-data-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.2;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.market-data-card .card-value.positive {
    color: #e53935;
}

.market-data-card .card-value.negative {
    color: #2e7d32;
}

.market-data-card .card-value.percentage::after {
    content: '%';
    font-size: 0.8em;
}

.market-data-card .card-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 基本面信息页面 - 搜索筛选区域 */
.search-filters-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-filters-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 160px;
    gap: 8px;
}

.filter-group.full-width {
    flex: 2;
    min-width: 320px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-self: flex-end;
}

.action-buttons .btn {
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn:active {
    transform: translateY(-1px);
}

/* 基本面信息页面 - 表格列表 */
.stock-list-container {
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.list-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.list-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.fundamental-table {
    width: 100%;
    border-collapse: collapse;
}

.fundamental-table thead th {
    background: #ffffff;
    color: #2c3e50;
    padding: 12px 10px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: none;
    letter-spacing: 0;
}

.fundamental-table thead th:first-child {
    text-align: left;
}

.fundamental-table thead th:last-child {
    text-align: left;
}

.fundamental-table tbody td {
    padding: 10px 10px;
    text-align: right;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fundamental-table tbody td:first-child {
    text-align: left;
}

.fundamental-table tbody td:last-child {
    text-align: left;
}

.fundamental-table tbody tr:hover {
    background: #fafafa;
    transform: none;
}

.fundamental-table tbody tr:last-child td {
    border-bottom: none;
}

/* 列宽分配，填满整行 */
.fundamental-table th:nth-child(1), .fundamental-table td:nth-child(1) { width: 9%;  text-align: left; }
.fundamental-table th:nth-child(2), .fundamental-table td:nth-child(2) { width: 12%; text-align: left; }
.fundamental-table th:nth-child(3), .fundamental-table td:nth-child(3) { width: 7%; }
.fundamental-table th:nth-child(4), .fundamental-table td:nth-child(4) { width: 9%; }
.fundamental-table th:nth-child(5), .fundamental-table td:nth-child(5) { width: 7%; }
.fundamental-table th:nth-child(6), .fundamental-table td:nth-child(6) { width: 10%; }
.fundamental-table th:nth-child(7), .fundamental-table td:nth-child(7) { width: 10%; }
.fundamental-table th:nth-child(8), .fundamental-table td:nth-child(8) { width: 12%; }
.fundamental-table th:nth-child(9), .fundamental-table td:nth-child(9) { width: 12%; }
.fundamental-table th:nth-child(10), .fundamental-table td:nth-child(10) { width: 14%; }
.fundamental-table th:nth-child(11), .fundamental-table td:nth-child(11) { width: 8%; text-align: left; }

.fundamental-table .code-cell {
    font-weight: 700;
    color: #667eea;
    position: relative;
}

.fundamental-table .code-cell::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.fundamental-table tbody tr:hover .code-cell::after {
    transform: scaleX(1);
}

.fundamental-table td.positive {
    color: #e53935;
    font-weight: 600;
}

.fundamental-table td.negative {
    color: #2e7d32;
    font-weight: 600;
}

/* 涨跌幅图标样式 */
.fundamental-table td.positive i {
    color: #e53935;
}

.fundamental-table td.negative i {
    color: #2e7d32;
}

.fundamental-table td i {
    margin-right: 5px;
    font-size: 0.9em;
}

/* 基本面信息页面 - 分页控件 */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 10px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-pages {
    display: flex;
    gap: 8px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.page-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .market-data-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .market-data-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group, .filter-group.full-width {
        min-width: auto;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .market-data-cards {
        grid-template-columns: 1fr;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 基本面信息页面面板头部样式 */
.fundamental-page .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px 14px 0 0;
}

.fundamental-page .panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fundamental-page .panel-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.fundamental-page .panel-actions {
    display: flex;
    gap: 12px;
}

.fundamental-page .panel-actions .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fundamental-page .panel-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fundamental-page .panel-actions .btn:active {
    transform: translateY(0);
}

/* 基本面信息页面搜索和筛选区域优化 */
.search-filters-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.search-filters-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-panel {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-panel .form-control {
    flex: 1;
    min-width: 250px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-panel .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-panel .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-panel .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.filter-group .form-label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
}

.filter-group .form-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.filter-group .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 输入框组样式 */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-radius: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-left: none;
    transition: all 0.3s ease;
}

.input-group-append .btn:first-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.input-group-append .btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.input-group-append .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
}

/* 基本面信息表格优化 */
.fundamental-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    table-layout: fixed;
}

.fundamental-table thead th {
    background: #ffffff;
    color: #2c3e50;
    padding: 16px 14px;
    text-align: right;
    font-weight: 600;
    font-size: 0.95em;
}

.fundamental-table thead th:first-child {
    text-align: left;
}

.fundamental-table thead th:last-child {
    text-align: left;
}

.fundamental-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.fundamental-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(3px);
}

.fundamental-table tbody tr:last-child td {
    border-bottom: none;
}

/* 基本面信息页面标签样式优化 */
.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin: 3px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #495057;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tag.positive {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: rgba(195, 230, 203, 0.3);
}

.tag.negative {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: rgba(245, 198, 203, 0.3);
}

.tag.tag-secondary {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
    border-color: rgba(214, 216, 219, 0.3);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .fundamental-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .search-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-panel .form-control {
        min-width: auto;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .fundamental-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fundamental-stats .stat-card {
        padding: 16px;
    }
    
    .fundamental-stats .stat-value {
        font-size: 1.5em;
    }
    
    .search-filters-section {
        padding: 16px;
    }
    
    .filters {
        gap: 15px;
    }
    
    .fundamental-table thead th,
    .fundamental-table tbody td {
        padding: 12px 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .search-filters-section {
        padding: 12px;
    }
    
    .search-panel {
        gap: 10px;
    }
    
    .filters {
        gap: 12px;
    }
    
    .fundamental-table {
        font-size: 0.85em;
    }
    
    .fundamental-table thead th,
    .fundamental-table tbody td {
        padding: 10px 8px;
    }
}

.fundamental-table th:nth-child(9), .fundamental-table td:nth-child(9) { text-align: left; }
.fundamental-table th:nth-child(10), .fundamental-table td:nth-child(10) { text-align: left; }
.fundamental-table th:nth-child(11), .fundamental-table td:nth-child(11) { text-align: left; }

/* 行业多选下拉 - 优化样式，统一为表单风格 */
.dropdown-multi { position: relative; display: inline-block; min-width: 220px; }
.dropdown-multi .btn { 
  display: inline-flex; align-items: center; justify-content: space-between;
  height: 36px; line-height: 22px; padding: 6px 10px; 
  background: #fff; color: #495057; border: 1px solid #ced4da; border-radius: 6px; 
  box-shadow: none; cursor: pointer; width: 100%; text-align: left;
}
.dropdown-multi .btn:after { content: '\25BE'; font-size: 12px; color: #6c757d; margin-left: 8px; }
.dropdown-multi .dropdown-menu { 
  position: absolute; top: 40px; left: 0; right: auto; min-width: 100%; max-height: 260px; 
  overflow: auto; background: #fff; border: 1px solid #e9ecef; box-shadow: 0 8px 18px rgba(0,0,0,0.1); 
  border-radius: 6px; padding: 8px; display: none; z-index: 1000; 
}
.dropdown-multi .dropdown-menu.open { display: block; }
.dropdown-multi .dropdown-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 14px; color: #2c3e50; }
.dropdown-multi .dropdown-item:hover { background: #f8f9fa; border-radius: 4px; }
.dropdown-multi .dropdown-item input { width: 16px; height: 16px; }
.dropdown-multi .dropdown-empty { padding: 8px; color: #6c757d; font-size: 13px; }
/* 过滤区域保持整齐 */
.search-panel { display: flex; flex-wrap: wrap; gap: 14px; }
.search-panel .filter-group { min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.search-panel .form-control, .search-panel .form-select { height: 36px; }

/* 基本面筛选区域 - 响应式网格布局（收紧宽度） */
.search-panel { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 12px 14px; 
  align-items: end; 
}
.search-panel .filter-group { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.search-panel .form-control, 
.search-panel .form-select { width: 100%; height: 34px; }
.search-panel .input-group { display: flex; width: 100%; align-items: center; }
.search-panel .input-group .form-control { flex: 1 1 auto; width: auto !important; min-width: 0; }
.search-panel .input-group-append { display: inline-flex; gap: 6px; margin-left: 8px; flex: 0 0 auto; }
.search-panel .input-group-append .btn { height: 34px; padding: 0 10px; }

/* 行业下拉与输入对齐 */
.dropdown-multi { min-width: 100%; }
.dropdown-multi .btn { width: 100%; }

/* 筛选字段宽度优化 */
.search-panel .filter-group.full-width { grid-column: 1 / -1; }
.search-panel .filter-group.wide { grid-column: span 2; }
.search-panel .filter-group.narrow { max-width: 200px; }

/* 搜索/清除按钮优化 */
.search-panel .input-group-append { display: inline-flex; gap: 6px; margin-left: 8px; }
.search-panel .input-group-append .btn { 
  height: 34px; padding: 0 10px; border-radius: 6px; 
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; line-height: 1; 
}
.search-panel .input-group-append .btn i { font-size: 13px; }
.search-panel .input-group-append .btn + .btn { margin-left: 0; }

/* 统一按钮风格（轻量） */
.btn { cursor: pointer; border: 1px solid transparent; transition: all .15s ease; }
.btn-primary { background: linear-gradient(135deg, #6b77f7, #8a6bf7); border-color: #6b77f7; color: #fff; box-shadow: 0 2px 6px rgba(107,119,247,.25); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 3px 8px rgba(107,119,247,.3); }
.btn-secondary { background: #ffffff; color: #495057; border-color: #ced4da; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.btn-secondary:hover { background: #f8f9fa; }

/* 输入、下拉统一高度（更紧凑） */
.search-panel .form-control, .search-panel .form-select, .dropdown-multi .btn { height: 34px; }

/* 概念输入适度缩窄 */
#conceptInput { max-width: 240px; }

/* 防止筛选字段重叠与溢出 */
.search-filters-section, .search-filters-container { width: 100%; }
.search-panel { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 12px 14px; 
  align-items: end; 
  grid-auto-flow: row dense; 
  grid-auto-rows: auto; 
}
.search-panel * { box-sizing: border-box; }
.search-panel .filter-group { width: 100%; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.search-panel .form-control, .search-panel .form-select { width: 100%; min-width: 0; }

/* 输入组：防止按钮遮挡、换行错位 */
.search-panel .input-group { display: flex; width: 100%; align-items: center; min-width: 0; }
.search-panel .input-group .form-control { flex: 1 1 auto; width: auto !important; min-width: 0; }
.search-panel .input-group-append { display: inline-flex; gap: 6px; margin-left: 8px; flex: 0 0 auto; }

/* 下拉组件宽度自适应 */
.dropdown-multi { min-width: 0; width: 100%; }
.dropdown-multi .btn { width: 100%; }

/* 标签不换行，避免挤压控件 */
.filter-label { white-space: nowrap; }

